package net.j4love.json.jackson.xml;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;

/**
 * @author he peng
 * @create 2018/1/8 15:47
 * @see
 */

@JacksonXmlRootElement(localName = "PayPlatResponseParameter")
public class PayPlatResponseParameter {

    @JacksonXmlProperty(localName = "RESPONSE_HEADER")
    private PayPlatResponseHeader responseHeader;

    @JacksonXmlProperty(localName = "RESPONSE_BODY")
    private PayPlatResponseBody responseBody;

    public PayPlatResponseHeader getResponseHeader() {
        return responseHeader;
    }

    public PayPlatResponseParameter setResponseHeader(PayPlatResponseHeader responseHeader) {
        this.responseHeader = responseHeader;
        return this;
    }

    public PayPlatResponseBody getResponseBody() {
        return responseBody;
    }

    public PayPlatResponseParameter setResponseBody(PayPlatResponseBody responseBody) {
        this.responseBody = responseBody;
        return this;
    }

    @Override
    public String toString() {
        return "PayPlatResponseParameter{" +
                "responseHeader=" + responseHeader +
                ", responseBody=" + responseBody +
                '}';
    }
}
